how to find the value of x